package com.xiaoxi.bms.service.common.fastdfs;

import com.xiaoxi.bms.common.exception.BMSException;
import com.xiaoxi.bms.domain.common.FastDfs;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author xiaoxi
 * @version 1.0
 * @date 2022/7/28 15:08
 */
public interface FastDfsService {

    /**
     * 上传图片
     *
     * @param file
     * @return
     * @throws BMSException
     */
    FastDfs uploadImage(MultipartFile file) throws BMSException;

    /**
     * 上传表格
     *
     * @param file
     * @return
     * @throws BMSException
     */
    FastDfs uploadExcel(MultipartFile file) throws BMSException;

}
